#include <QPushButton>
#include <QSize>
#include <QEvent>
#include <QAbstractButton>

class PlayPauseButton : public QPushButton
{
	Q_OBJECT

public:
	PlayPauseButton(QWidget * parent = 0): QPushButton(parent)
	{
		this->setCheckable(true);
		connect(this, SIGNAL(toggled(bool)), this, SLOT(onToggle(bool)));
	};

public slots:

	void onToggle(bool checked)
	{
		if (checked)
		{
			this->setText("||");
		}
		else
		{
			this->setText(">");
		}
	};
	
};